package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.model.MsgLogDO;

/**
 * <p>
 * 消息投递日志 服务类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-07-22
 */
public interface MsgLogService extends IService<MsgLogDO> {

    /**
     * 创建一条日志记录
     *
     * @param msgLogDO    日志消息
     * @return 是否成功
     */
    boolean createMsgLog(MsgLogDO msgLogDO);

    /**
     * 修改一条日志记录
     *
     * @param msgLogDO    日志消息
     * @return 是否成功
     */
    boolean updateMsgLogById(MsgLogDO msgLogDO);

    /**
     * 查询一条日志记录
     *
     * @param id    日志id
     * @return MsgLogDO
     */
    MsgLogDO getMsgLogById(Long id);
}
